<?php
/* 
 * ebiz front
 * 
 * @author Steve
 * 
 */
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
    <head>
        <meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
        <title>兑换中心-阿基米米网上商城</title>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/lib/jquery.js'></script>
        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/n/javascript/lib/jquery-ui-datepicker.js'></script>

        <script type='text/javascript' language='javascript' src='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/javascript/akimimi.js'></script>
  
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/default.css' rel='stylesheet' type='text/css' />
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/myaccountleftnav.css' rel='stylesheet' type='text/css' />
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css//myaccount.css' rel='stylesheet' type='text/css' />                  
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css//order_detail.css' rel='stylesheet' type='text/css' />                  
        <link href='//<?php echo ConfigConstants::$iConstants.".".DOMAIN; ?>/t/<?php echo $GLOBALS["config"]['template_name']; ?>/css/headerAndFooter.css' rel='stylesheet' type='text/css' />
    </head>
    <body>
        <?php 
            require_once '../app/views/HeaderView.php';
            echo HeaderView::getCommonHeaderView();
            if($applyGiftLog[0]['apply_type'] == 1){
            	$pageTitle = "优惠券详情";
            } else if ($applyGiftLog[0]['apply_type'] == 2){
            	$pageTitle = "礼品详情";
            }
        ?>
        <div id="navigation">
            <a href="/">首页</a>
            <span>></span>
            <a href="/userinfo/index">我的阿基米米</a>
             >  <a href="/userinfo/giftdetail?id=<?php echo $applyGiftLog[0]['id'];?>"><?php echo $pageTitle;?></a>
        </div>
        <div id="mymimi_body">
       <?php 
            require_once '../app/views/MyAccoutLeftNavView.php';
            echo MyAccountLeftNav::getMyAccountLeftNav();
        ?>
           <div id="mymimi_right">
               <div class="right_bj"></div>
               <div id="order_xx" style="margin-top:10px;">
                 <?php if($applyGiftLog[0]['apply_type'] == 1){?>
                  <div class="order_list_t" style="font-size:14px;">
                                                          优惠券信息
                  </div>
                  <div class="order_body" style="padding: 5px 0pt;">
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">优惠券描述:</span><span style="margin-left:5px;"><?php echo $promotion[0]['short_description'];?></span></p>
                       <p class="style_1"  style="width:380px;"><span style="font-weight:bold;">优惠券号码: </span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['coupon_code'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">兑换消耗积分:</span><span style="margin-left:5px;"> <?php echo $applyGiftLog[0]['points'];?></span></p>
                       <!--
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">当前消耗积分:</span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['current_exhaust_points'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">当前累积积分总额: </span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['current_ac_points'];?></span></p>
                       -->
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">状          态:</span><span style="margin-left:5px;"> <?php echo UserConstants::getApplyCouponStatus($applyGiftLog[0]['status']);?></span></p>
                       <p class="style_3"><span style="font-weight:bold;">申请日期:</span><span style="margin-left:5px;"> <?php echo $applyGiftLog[0]['created'];?></span></p>
                  </div>
                  <?php }?>
                  <?php if($applyGiftLog[0]['apply_type'] == 2){?>
                  <div class="order_list_t" style="font-size:14px;">
                                                         礼品信息
                  </div>
                  <div class="order_body" style="padding: 5px 0pt;">
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">礼品名称: </span><span style="margin-left:5px;"><?php echo $gift[0]['title'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">兑换消耗积分: </span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['points'];?></span></p>
                    <!--   
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">当前消耗积分:</span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['current_exhaust_points'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">当前累积积分总额: </span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['current_ac_points'];?></span></p>
                       --><p class="style_1" style="width:380px;"><span style="font-weight:bold;">状    态: </span><span style="margin-left:5px;"><?php echo UserConstants::getApplyGiftStatus($applyGiftLog[0]['status']);?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">申请日期:</span><span style="margin-left:5px;">  <?php echo $applyGiftLog[0]['created'];?></span></p>
                  </div> 
                  <div class="order_list_t" style="font-size:14px;">
                                                         邮递信息
                  </div>
                  <div class="order_body" style="padding: 5px 0pt;">
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">收件人姓名:</span><span style="margin-left:5px;"> <?php echo $applyGiftLog[0]['delivery_name'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">电子邮箱:</span><span style="margin-left:5px;"> <?php echo $applyGiftLog[0]['delivery_email'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">手    机: </span><span style="margin-left:5px;"> <?php echo $applyGiftLog[0]['delivery_phone2'];?></span></p>
                       <p class="style_1" style="width:380px;"><span style="font-weight:bold;">固定电话: </span><span style="margin-left:5px;"><?php echo $applyGiftLog[0]['delivery_phone1'];?></span></p>
                       <p class="style_3"><span style="font-weight:bold;">所在地区: </span><span style="margin-left:5px;"> <?php echo $province[0]['title'].' '.$city[0]['title'].' '.$county[0]['title'];?></span></p>
                       <p class="style_3"><span style="font-weight:bold;">详细地址: </span><span style="margin-left:5px;"> <?php echo $applyGiftLog[0]['delivery_detail_address'];?></span></p>
                  </div>   
                  <?php }?>
               </div>
        
        
        
        
           </div>
          <?php 
            require_once '../app/views/FooterView.php';
            echo FooterView::getCommonFooterView();
         ?>   
         
         
            
            
    </body>
</html>